
#include "gpssrunner.h"
#include "mythread.h"

GpssRunner::GpssRunner():num(0)
{
}
void GpssRunner::runModel()
{
    MyThread *thread = new MyThread;
    connect(thread, SIGNAL(signalIterFinished(int)), this, SLOT(slotProcFinished(int)));
    connect(thread, SIGNAL(signalGeneration()), SIGNAL(signalGenFinished()));
    thread->start();
}
void GpssRunner::slotProcFinished(int)
{
    num+=1;
    emit signalFinished(num);
}
